<!DOCTYPE html>
<html   xmlns="http://www.w3c.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:p="http://primefaces.org/ui"
        xmlns:f="http://xmlns.jcp.org/jsf/core">
    <h:head/>
    <h:body>
        <h:form>
            <p:outputPanel id="out">
                <p:inputText value="Here is a content..." rendered="#{outputPanelBean.render}"/>
            </p:outputPanel>
            <p:commandButton value="View on" update="out" actionListener="#{outputPanelBean.doRenderTrue()}" />
            <p:commandButton value="View off" update="out" actionListener="#{outputPanelBean.doRenderFalse()}" />
        </h:form>
    </h:body>
</html>
